//package com.eastfair.cloud.okhttp;
//
//import lombok.extern.slf4j.Slf4j;
//import okhttp3.Interceptor;
//import okhttp3.Request;
//import okhttp3.Response;
//
//import java.io.IOException;
//
//@Slf4j
//public class OkHttpLogInterceptor implements Interceptor {
//    @Override
//    public Response intercept(Chain chain) throws IOException {
//        log.info("OkHttpUrl : " + chain.request().url());
//
//        Request request = chain.request();
//        Response response = chain.proceed(request);
//        log.info("code     =  : " + response.code());
//        log.info("message  =  : " + response.message());
//        log.info("protocol =  : " + response.protocol());
//        log.info("string   =  : " + response.body().string());
//        Response clone = response.newBuilder().build();
//        return clone;
////        return chain.proceed(chain.request());
//    }
//}
